package view;

import java.awt.Color;
import java.awt.Dimension;

import javax.swing.JLabel;
import javax.swing.JPanel;

public class Statusleiste extends JPanel{

	private static final long serialVersionUID = 1L;
	private JLabel score;
	private JLabel time;
	private JLabel lives;
	private JLabel coins;
	
	
	
	
	public Statusleiste(){
		this.setPreferredSize(new Dimension(800,25));
		this.setSize(800,25);
		this.setBackground(Color.gray);
		score = new JLabel();
		time = new JLabel();
		coins = new JLabel();
		lives = new JLabel();
		this.setScore(0);
		this.setTime(0);
		this.setCoins(0);
		this.setLives(3);
		
		this.add(score);
		this.add(time);
		this.add(coins);
		this.add(lives);

		this.setVisible(true);
	}
	
	public void setScore(int score){
		this.score.setText("Score: "+score);
	}
	public void setTime(long time){
		this.time.setText("Time: "+time);
	}
	public void setCoins(int coins){
		this.coins.setText("Coins: "+coins);
	}
	public void setLives(int lives){
		this.lives.setText("Lives: "+lives);
	}
	
	

}
